from django.urls import path, re_path

from . import views

urlpatterns = [
    re_path(r'^email/(?P<email>[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+)/(?P<sig>[A-Za-z0-9]{10}$)', views.EmailView.as_view()),  # 邮箱验证
    re_path(r'^email/active/(?P<email>[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+)/(?P<code>[A-Za-z0-9]{6}$)',
            views.EmailActiveView.as_view())  # 邮箱激活确认验证
]
